<?php
global $base_dir;
$base_dir='../../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件
?>
<?php
//接收参数
if(is_array($_GET))
{
	foreach($_GET as $key => $value)
	{
		$$key=$value;
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$lanmu_name?>-后台管理系统</title>
<link href="../../style/common.css" rel="stylesheet" type="text/css" />
<script src="../../js/checkform.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function mycheck()
{
	var tmp_str=trim(document.getElementById("amount").value);
	var pattern =/^\d+(\.\d+)?$/;
	if(tmp_str<=0 || !pattern.test(tmp_str))
	{
		alert("金额格式不正确！");
		document.getElementById("amount").select();
		return false;
	}
	return checkform();
}
</script>
</head>
<body>
<?php
$t=new Tbl_Act($tbl_name,$tbl_key);		//创建表对象
$t->$tbl_key=$_GET['id'];
$t->GetOne(array($tbl_key.',='));
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="lanmu_table">
  <tr>
    <td height="30" valign="bottom"><a href="<?=$url_list?>"><span class="lanmu_title"><?=$lanmu_name?></span></a><span class="lanmu_title2">&nbsp;&gt;&nbsp;预存款</span></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="margintop30_l">
<form action="<?=$url_act?>" method="post" name="search" enctype="multipart/form-data" onsubmit="return mycheck();">
  <table border="0" cellpadding="2" cellspacing="1" class="margintop30">
  <tr>
		<td width="114" height="25" align="right" class="title01">用户名:</td>
		<td width="616" class="list_content1"><label><?=$t->mem_name?>
		&nbsp;&nbsp;</label><input name="mem_name" type="hidden" value="<?=$t->mem_name?>" /></td>
    </tr>  
	  <tr>
	    <td height="25" align="right" class="title01">账户余额:</td>
	    <td class="list_content1"><?=$t->mem_money?>元<input name="balance" type="hidden" value="<?=$t->mem_money?>" /></td>
    </tr>
	  <tr>
	    <td height="25" align="right" class="title01">操作:</td>
	    <td class="list_content1"><select name="symbol" id="symbol">
	      <option value="1">充值</option>
	      <option value="0">扣款</option>
	      </select>
        <input name="amount" type="text" id="amount" style="text-align:right" value="0" size="6" />
        元</td>
    </tr>
	  <tr>
		<td width="114" height="25" align="right" class="title01">备注:</td>
		<td width="616" class="list_content1"><label>
		  <textarea name="beizhu" rows="5" id="beizhu" char="备注" bt="1" min_len="4" max_len="200">账户充值</textarea>
		&nbsp;&nbsp;</label></td>
	  </tr>
    <tr>
      <td height="25" colspan="2" align="center" class="list_content1"><input type="submit" name="Submit2" value="提交" />
        &nbsp;&nbsp;
        <input name="reset" type="reset" value="重填" />
        <input name="<?=$tbl_key?>" type="hidden" id="<?=$tbl_key?>" value="<?=$id?>" />
        <input name="act" type="hidden" id="act" value="recharge" />      </td>
    </tr>
  </table>
</form>
<iframe src="log_list.php?id=<?=$id?>" width="620" height="200" frameborder="0"></iframe>
<!-- 7caihu.com Baidu tongji analytics -->
</body>
</html>
<?php
include_once($base_dir."inc/inc_unconnect.php")
?>